<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: jiangxuchuan
  Date: 2022/1/4
  Time: 15:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Print List</title>
</head>
<body>
    <%
        List<String> list = new ArrayList<>();
        list.add("JSP基础入门");
        list.add("java工程师");
        list.add("网络工程师");
        list.add("Python从入门到精通");
    %>
    <%
        for (int i=0;i<list.size();i++){
    %>
    <h1>第<%= i+1 %>条,<%= list.get(i)%></h1><br>
    <%
        }
    %>
</body>
</html>
